package creationpattern.abstractfactorypattern;

public class AbstractFactoryProducer {
	static AbstractFactory getFactory(String s) {
		if(s.equalsIgnoreCase("SHAPE")) {
			return new ShapeFactory();
		}
		else if(s.equalsIgnoreCase("COLOR")) {
			return new ColorFactory();
		}
		
		return null;
	}
}
